//
//  CmdData.h
//  SensorTagEX
//
//  Created by sno on 15-1-30.
//  Copyright (c) 2015年 Texas Instruments. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CmdData : NSObject

+(void )getRGBCmdArray:(int)colorA colorB:(int)colorB retData:(uint8_t *)retData;
+(NSData *)getRGBCmdArray:(int)colorA colorB:(int)colorB;
+(NSData *) getMoreRGBArray:(NSMutableArray *)array;
+(NSData *) getNameCmdArray:(NSString *)name;
+(NSData *) getPassWdCmdArray:(NSString *)passwd;
+(NSData *) getTiaoBianArray:(BOOL)enable second:(uint8_t)second;
+(NSData *) getJianBianArray:(BOOL)enable second:(uint8_t)second;
+(NSData *) getBondPasswdArray:(NSString *)passwd;
+(NSData *) getOpenLight:(BOOL)isOpen;
+(NSData *) getSyncBianArray;
+(NSData *) getOneKeyWhiteArray;


+(BOOL) checkRcvData:(NSData *)data;
+ (int)getRandomNumber;
+(void) EncryptCode:(uint8_t *)byteArray;
+(void) DecryptCode:(uint8_t *)byteArray;
@end
